<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Map_model extends MY_Model {
    function Map_model()
    {
        parent::MY_Model();
    }
	
    function ww_get_map_by_user($x, $y, $limit, $typeview)
    {
        return $this->getRows("CALL ww_get_map_by_user('$x', '$y', '$limit', '$typeview')", 1);
    }
    function ww_get_map_by_user_np($x, $y, $limit)
    {
        return $this->getRows("CALL ww_get_map_by_user_np('$x', '$y', '$limit')", 1);
    }
    function ww_get_map_user_info($userid, $user_oasis_orderid)
    {
        return $this->getRows("CALL ww_get_map_user_info('$userid', '$user_oasis_orderid')", 0);
    }
    function ww_get_info_map_by_user($mapid)
    {
        return $this->getRows("CALL ww_get_info_map_by_user('$mapid')", 0);
    }
}